<?php

use backend\assets\EchartsAsset;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $surveyData array */
/* @var $sysInfo array */
/* @var $dayRechargeData array */

$this->title = '工作台-' .Yii::$app->name. '运营系统';
EchartsAsset::register($this);

?>
<div class="row">
    <div class="col-md-3 col-sm-6 col-xs-12" onclick="window.open('<?= Url::toRoute(['user/index'])?>')" style="cursor: pointer;">
        <div class="info-box">
            <span class="info-box-icon bg-info elevation-1"><i class="fa fa-users"></i></span>
            <div class="info-box-content">
                <span class="info-box-text">总用户 <strong style="font-size: 25px"><?= number_format(0) ?></strong> 人</span>
                <span class="info-box-text">昨日新增 <b><?= 0 ?></b>&nbsp;&nbsp;<br/> 今日新增 <b><?= 0 ?></b></span>
            </div><!-- /.info-box-content -->
        </div><!-- /.info-box -->
    </div><!-- /.col -->
    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-green elevation-1"><i class="fas fa-thumbs-up"></i></span>
            <div class="info-box-content">
                <span class="info-box-text">总流水 <strong style="font-size: 25px"><?= number_format(0) ?></strong> 元</span>
                <span class="info-box-text">昨日流水 <b><?= number_format(0) ?></b> 元&nbsp;<br/> 今日流水 <b><?= number_format(0) ?></b> 元</span>
            </div><!-- /.info-box-content -->
        </div><!-- /.info-box -->
    </div><!-- /.col -->

    <!-- fix for small devices only -->
    <div class="clearfix visible-sm-block"></div>

    <div class="col-md-3 col-sm-6 col-xs-12">
        <div class="info-box">
            <span class="info-box-icon bg-yellow elevation-1"><i class="fa fa-anchor"></i></span>
            <div class="info-box-content">
                <span class="info-box-text">房间 <strong style="font-size: 25px"><?=0 ?></strong> 条</span>
                <span class="info-box-text">昨日发布 <b><?= 0 ?></b> 条&nbsp;<br/> 今日发布 <b><?= 0 ?></b> 条</span>
            </div><!-- /.info-box-content-->
        </div><!-- /.info-box-->
    </div><!-- /.col-->
    <div class="col-md-3 col-sm-6 col-xs-12" onclick="window.open('<?= Url::toRoute(['free-list/index'])?>')" style="cursor: pointer;">
        <div class="info-box">
            <span class="info-box-icon bg-red elevation-1"><i class="fa fa-shopping-cart"></i></span>
            <div class="info-box-content">
                <span class="info-box-text">主播需求 <strong style="font-size: 25px"><?= 0 ?></strong> 条</span>
                <span class="info-box-text">昨日发布 <b><?= 0 ?></b>&nbsp;<br/> 今日发布 <b><?= 0 ?></b></span>
            </div><!-- /.info-box-content -->
        </div><!-- /.info-box -->
    </div><!-- /.col -->
</div><!-- /.row -->

<div class="row">
    <?php //=$this->render('echartsCurve', ['data' => $dayRechargeData,'divId' => 'recharge-data' ,'title' => '流水统计'])?>
</div>

<div class="row">
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title"><i class="fas fa-cog"></i> 系统信息</h3>
            </div><!-- /.box-header -->
            <div class="card-body">
                <dl class="row">
                    <?php foreach ($sysInfo as $key => $info) :?>
                        <dt class="col-sm-4"><?= $key ?></dt>
                        <dd class="col-sm-8"><?= $info ?></dd>
                    <?php endforeach;?>
                </dl>
            </div><!-- /.box-body -->
        </div>
    </div>
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title"><i class="fas fa-th"></i> 研发团队</h3>
            </div><!-- /.box-header -->
            <div class="card-body">
                <dl class="row">
                    <dt class="col-sm-4">产品名称</dt>
                    <dd class="col-sm-8"><?= Yii::$app->name ?> 运营系统</dd>
                    <dt class="col-sm-4">研发公司</dt>
                    <dd class="col-sm-8">FUSEN</dd>
                    <dt class="col-sm-4">开发人员</dt>
                    <dd class="col-sm-8">xiongzai</dd>
                    <dt class="col-sm-4">访问者IP</dt>
                    <dd class="col-sm-8"><?= Yii::$app->request->getUserIP()?></dd>
                    <dt class="col-sm-4">&nbsp;</dt><dd class="col-sm-8">&nbsp;</dd>
                    <dt class="col-sm-4">&nbsp;</dt><dd class="col-sm-8">&nbsp;</dd>
                    <dt class="col-sm-4">&nbsp;</dt><dd class="col-sm-8">&nbsp;</dd>
                    <dt class="col-sm-4">&nbsp;</dt><dd class="col-sm-8">&nbsp;</dd>
                    <dt class="col-sm-4">&nbsp;</dt><dd class="col-sm-8">&nbsp;</dd>
                </dl>
            </div><!-- /.box-body -->
        </div>
    </div>
</div>
